<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-11-22 17:09
 *
 * Version: 2.0
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CouponList extends Model
{
	protected  $table = 'coupon_list';
	protected  $guarded = [];
	protected  $hidden = ['updated_at','deleted_at'];
	public function coupon(){
		return $this->belongsTo(Coupon::class,'coupon_id','id');
	}

	public function member(){
		return $this->belongsTo(Member::class,'member_id','id');
	}


	public function user(){
		return $this->belongsTo(User::class,'user_id','id');
	}

	public function store(){
		return $this->belongsTo(Store::class,'store_id','id');
	}
}